%ion-view#activities-page(view-title="活动页面" hide-nav-bar="true")
  %ion-header-bar.bar.bar-furion(align-title="center")
    %button.back-button(ng-click="goBack()")
    %h1.title 活动页面

  %ion-content
    %ion-refresher(pulling-text="下拉刷新..." on-refresh="refreshing()" refreshing-text="通信中")
    .text-center.margin-tb-5p(ng-if="!list")
      %ion-spinner(icon="bubbles")

    #blank-page.text-center(ng-if="list && list.length == 0")
      #blank-content
        %img.width-50(src="img/nothing.png")
        %p.margin-top-20(style="font-size: 15px;")
          暂时还没有活动哦~

    .list.card.relative-box(ng-repeat="l in list" ng-click="goActivity(l)")
      %img.time-over-img.width-25(src="img/activities/activitiy_over.jpg" ng-if="l.end_at <= now_time")
      .item.activity-item
        %span {{ l.base.vname }}
        .oa-hint {{ l.begin_at | date: 'yyyy-MM-dd' }}
      .item.item-image
        %img(ng-src="{{l.banner_url}}" ng-class="{'grayscale': l.end_at <= now_time}")

    .text-center.light-grey(ng-if="list.length > 0")
      .oa-hint(ng-if="curPage < maxPage") 往上拉查看更多活动
      .oa-hint(ng-if="curPage >= maxPage") 没有更多活动咯

    %ion-infinite-scroll(on-infinite="getActivityList(curPage+1)" immediate-check="false" ng-if="curPage < maxPage")
